package com.lida.ssm.controller;

import com.lida.ssm.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * author: lida
 * create time: 2020-09-01 19:36
 * description:
 */
@RestController
public class UserController {

    @Autowired
    UserService userService;

    @Value(value = "${linda1}")
    private String linda1;

    @Value(value = "${linda2}")
    private String linda2;

    @Value(value = "${linda3}")
    private String linda3;

    @Value(value = "${wugeng.name}")
    private String wugengName;


    @Value(value = "${habbit[0]}")
    private String ball;


    @RequestMapping("users")
    public Object findAll() {
        System.out.println("linda1=" + linda1);
        System.out.println("linda2=" + linda2);
        System.out.println("linda3=" + linda3);
        System.out.println("wugengName=" + wugengName);
        System.out.println("ball=" + ball);
        return userService.findAll();
    }
}
